<template>
	<view class="Menu">
		<!-- 导航条 :style="{ height: $wanlshop.wanlsys().height + 'px' }"-->
		<view class="cu-custom">
			<view class="cu-bar fixed" style="background: #06224b; color: #fff;"
				:style="{height: $wanlshop.wanlsys().height + 'px',paddingTop: $wanlshop.wanlsys().top + 'px',}">
				<view class="action">
					<text class="wlIcon-fanhui1" style="margin-left: 0" @tap="$wanlshop.back(1)"></text>
				</view>
				<view class="content" :style="{ top: $wanlshop.wanlsys().top + 'px' }">
					详情
				</view>
				<view class="action">

				</view>
			</view>
		</view>
		<z-paging ref="paging" v-model="dataList" class="listbox" @query="getDataList" default-page-size="15">
			<view class="yldList" v-for="(item,index) in dataList" :key="index">
				<view class="listLeft">
					<view class="name">{{item.memo}}</view>
					<view>{{item.createtime}}</view>
				</view>
				<view class="listRight">{{item.money>0?"+":""}} {{item.money}}</view>
			</view>
		</z-paging>
	</view>
</template>
<script>
	export default {
		data() {
			return {
				dataList: [],
				id: '',
			};
		},
		onLoad(option) {
			this.id = option.id
		},
		methods: {
			getDataList(pageNo, pageSize) {
				uni.request({
					url: "/financing/financingUserLog",
					method: "POST",
					data: {
						page: pageNo,
						order_id: this.id
					},
					// 1.1.8 升级
					success: (res) => {
						if (res.res.code == 1) {
							this.$refs.paging.complete(res.res.data.data);
						}
					},
					fail() {
						this.$refs.paging.complete(false);
					}
				});
			},

		}
	};
</script>

<style lang="scss">
	page {
		background: #06224b;
	}

	.Menu {
		.yldList {
			margin: 24rpx 24rpx 16rpx 24rpx;
			background: rgba(255, 255, 255, 0.1);
			border-radius: 16rpx;
			padding: 30rpx 30rpx 30rpx 30rpx;
			font-weight: 400;
			font-size: 24rpx;
			color: #fff;
			display: flex;
			justify-content: space-between;
			align-items: center;

			.name {
				font-size: 28rpx;
				color: #fff;
				margin-top: 10rpx;
			}

			.listRight {
				font-weight: 400;
				font-size: 32rpx;
				color: #51E7FC;
			}

		}
	}
</style>